define([], function(){
    var cols = [
        {name: 'id', display: 'id', width: 10, type: 'text', disabled: false},
        {name: 'cols1', display: '出行人', width: 80, type: 'text', disabled: true},
        {name: 'cols2', display: '签证状态', width: 80, type: 'text', disabled: true},
        {name: 'cols3', display: '办签类型', width: 80, type: 'text', disabled: true},
        {name: 'cols4', display: '订单号', width: 120, type: 'text', disabled: true},
        {name: 'cols5', display: '办签要求', width: 80, type: 'text', disabled: true},
        {name: 'cols6', display: '订单名称', width: 150, type: 'text', disabled: true},
        {name: 'cols7', display: '联系人', width: 80, type: 'text', disabled: true},
        {name: 'cols8', display: '联系电话', width: 100, type: 'text', disabled: true},
        {name: 'cols9', display: '人员类型', width: 100, type: 'text', disabled: true},
        {name: 'cols10', display: '出发日期', width: 100, type: 'text', disabled: true},
        {name: 'cols11', display: '资料单', width: 80, type: 'text', disabled: true},
        {name: 'cols12', display: '备注', width: 100, type: 'text', disabled: true}

    ];
    
    
    var visa_status = avalon.define({
        $id:"visa_statusDetail",
        testinput:"",
        testinputname:"",
        testinputuser:"2222",
        testinputnameuser:"",
        txtsgr1:"",
        txtsgr2:"",
        vssearchfunc:function(){
            avalon.vmodels['visa_status_dg'].searchData({})
        },
        showdate1:function(e){
            e.stopPropagation();
            avalon.vmodels['sgr1'].showpk = true;
        },
        showdate2:function(e){
            e.stopPropagation();
            avalon.vmodels['sgr2'].showpk = true;
        },
        $dropdowndept:{
            pullDataFuncUrl:"../json/dropdown.department.json",
            serverside:true,
            wgwidth:"150px",
            fuzzysourceflag:{name: "cName", value: "value"},
            fuzzyServerside:true,
            fuzzypullDataFuncUrl:"../json/dropdown.department.json",
            showsize:3,
            sourceFlag:{name: "cName", value: "value"},
            duplexValue:"testinputuser",
            outervmid:'visa_statusDetail'
        },
        $dropdowndeptuser:{
            wgwidth:"150px",
            pullDataFuncUrl:"../json/dropdown.departuser.json",
            serverside:true,
            fuzzysourceflag:{name: "cName", value: "value"},
            fuzzyServerside:true,
            fuzzypullDataFuncUrl:"../json/dropdown.departuser.json",
            showsize:3,
            duplexValue:"testinputnameuser",
            sourceFlag:{name: "cName", value: "value"},
            outervmid:'visa_statusDetail'
        },
        $visastatus:{
            width:'161px',
            singleselect:true,
            sourceFlag:{value:"id",text:"name"},
            dataSource:[{name:'未生成',id:1},{name:'未提交',id:2},{name:'待审核',id:3}]
        },
        $singledatepicker1:{
            showpk:false,
            singleSelect:true,
            cpwidth:'250px',
            aftercheckfunc:function(obj){
                visa_status.txtsgr1 = obj[0];
            }
        },
        $singledatepicker2:{
            showpk:false,
            singleSelect:true,
            cpwidth:'250px',
            aftercheckfunc:function(obj){
                visa_status.txtsgr2 = obj[0];
            }
        },
        $visa_status_gropt:{
            checkbox:true,
            singleSelect:true,
            editable:false,
            autoLoad:false,
            pagerbar:true,
            limit:15,
            bar:false,
            loadUrl: "../json/td.visa_status_result.json",
            cols: cols
        }
    });
    return visa_status;
});
